import { Layout } from '@fl/utils/routerHelper'

const systemSetting: AppRouteRecordRaw = {
    children: [
        {
            component: () => import('@/operations-pages/system-setting/menu/index.vue'),
            meta: {
                title: '菜单管理',
            },
            name: 'menu',
            path: 'menu',
        },
        {
            component: () => import('@/pages/system-setting/role/index.vue'),
            meta: {
                isAdmin: true,
                title: '角色管理',
            },
            name: 'admin-role',
            path: 'role',
        },
        {
            component: () => import('@/pages/system-setting/account/index.vue'),
            meta: {
                isAdmin: true,
                title: '账号管理',
            },
            name: 'admin-account',
            path: 'account',
        },
        {
            component: () => import('@/pages/system-setting/dicts/index.vue'),
            meta: {
                isAdmin: true,
                title: '字典管理',
            },
            name: 'admin-dicts',
            path: 'dicts',
        },
        {
            component: () => import('@/pages/system-setting/dicts/info.vue'),
            meta: {
                isAdmin: true,
                title: '字典详情',
            },
            name: 'dicts-info',
            path: 'dicts-info',
        },
    ],
    component: Layout,
    meta: {
        alwaysShow: true,
        title: '系统配置',
    },
    name: 'system-setting',
    path: 'system-setting',
}

export default systemSetting
